<?php

namespace App\Controller\Admin;

use Core\Result\Result;
use Core\Utils\Upload\Upload;

class Qiniu
{
    public function upLoad($data){
        $qiniuUpLoad = Upload::qiniuUpLoad($_FILES);
        Result::success($qiniuUpLoad);
    }
    public function geiQiniuToken(){
        $qiniuAppUpLoad = Upload::getQiniuToken();
        Result::success($qiniuAppUpLoad);
    }
}